package com.dev.toolkit.common.enums;

import lombok.Getter;

/**
 * @author ZhuYouBin
 * @date 2024/4/6 16:01
 * @version 1.0.0
 * @description 统一响应结果枚举类
 */
@Getter
public enum ResultEnum {
    SUCCESS(200, "响应成功"),
    FAILED(50000, "操作异常");
    
    /** 状态码 */
    private final Integer code;
    /** 提示信息 */
    private final String message;
 
    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}